package OOAP;

public class Person {
    public String name;
    public int age;
    public String sex;
    public String eyes;
    public String mouth;
    public String nose;
//showPerson方法是成员方法，必须通过对象调用
    public void showPerson(){
        System.out.println("姓名为"+name);
    }

    public static void main(String[] args) {
        Person person=new Person();
        person.name="哦嗯";
        person.showPerson();
    }

    public Person(){
        System.out.println("无参构造");
    }
    public Person(String name, int age, String sex, String eyes, String mouth, String nose) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.eyes = eyes;
        this.mouth = mouth;
        this.nose = nose;
    }
}
